Applying Morphological Operations

The morphological operations of dilation, erosion, opening, closing, and smooth can be applied to refine regions of interest and the selected class of a multi-ROI by growing or shrinking labeled regions. The precise effect of these operations is determined by the selected structuring element. If the Use range option is selected, then the operation will be limited to the available range (see Thresholding).

Morphological operations box

Morphological operations

Dilate… Expands a region of interest using the selected structuring element.

Erode… Shrinks a region of interest using the selected structuring element.

Open… Is an erosion followed by a dilation using the same structuring element for both operations. In general, opening is less destructive than erosion. The effect of the operator is to preserve foreground regions that have a similar shape to the structuring element, or that can completely contain the structuring element, while eliminating other foreground pixels.

Close… Is a dilation followed by an erosion using the same structuring element for both operations. The effect of the operator is to preserve background regions that have a similar shape to the structuring element, or that can completely contain the structuring element, while eliminating other background pixels.

Smooth… Smooths a region of interest using the selected structuring element. Smoothing can be required in some cases to remove noise from the surface of an object. An example of smoothing is show in the following screen captures.

Original ROI (left) and smoothed ROI (right)

Settings for morphological operations
  Description

Dimensionality

Lets you apply the selected morphological operation in 3D, in which case the operation will be applied to all axes, or in 2D, in which the case the operation can be applied along the X, Y, or Z axis.

Shape

Lets you choose the shape and size of the neighborhood that will be sampled when calculating the pixel values to be modified (see Structuring Element).

Open

Can be defined as an erosion followed by a dilation using the same structuring element for both operations. In general, opening is less destructive than erosion. The effect of the operator is to preserve foreground regions that have a similar shape to the structuring element, or that can completely contain the structuring element, while eliminating other foreground pixels.

Range

Lets you choose selected slices, a range of image slices and an increment, or a combination of both, to which the selected morphological operation will be applied. For example, if you enter 1,2,3-5,6-15/3, then the operation will be applied to slices 1, 2, 3, 4, 5, 6, 9, 12, and 15.

Kernel size

Lets you choose the size of the neighborhood that will be sampled when calculating the pixel values to be modified (see Structuring Element).